/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package simplemetrosystem.view.menu;

import javax.swing.JMenuItem;
import simplemetrosystem.model.charlanguage.NameMap;
import simplemetrosystem.view.MetroFrame;
import simplemetrosystem.view.action.CalculActionListener;

/**
 *
 * @author Eric Qian
 */
public class ModCalItem extends JMenuItem {

    /**
     * 
     * @param frame
     */
    public ModCalItem(MetroFrame frame) {
        this.frame = frame;
        nameMap = NameMap.getInstance();
        this.setText(nameMap.getName("Calculation Model"));
        this.addActionListener(new CalculActionListener(frame));
    }
    private MetroFrame frame;
    private NameMap nameMap;
}
